* {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #333;
    color: #fff;
    height: 100vh;
    line-height: 1.6;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100%;

    /* CSS实现全图滚动 */
    /* overflow-y: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory; */
}

.navbar {
    position: fixed;
    top: 0;
    /* z-index: 1; */
    width: 100%;
    height: 60px;
    background-color: rgba(0, 0, 0, .7);
}

.navbar ul {
    display: flex;
    list-style: none;
    width: 100%;
    justify-content: center;
}

.navbar ul li {
    margin: 0 1rem;
    padding: 1rem;
}

.navbar ul li a {
    text-decoration: none;
    color: #f4f4f4;
}

.navbar ul li a:hover {
    color: skyblue;
}

section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100vh;

    /* scroll snap */
    /* scroll-snap-align: center; */
}

section h1 {
    font-size: 4rem;
}

section p {
    font-size: 1.5rem;
}

section#home {
    background: url(https://images.pexels.com/photos/34140/pexels-photo.jpg?cs=srgb&dl=blogging-coding-copywriting-34140.jpg&fm=jpg) no-repeat center center/cover;
}

section#about {
    background: url(https://images.pexels.com/photos/262508/pexels-photo-262508.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500) no-repeat center center/cover;
}

section#service {
    background: url(https://images.pexels.com/photos/2148217/pexels-photo-2148217.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500) no-repeat center center/cover;
}

section#contact {
    background: url(https://images.pexels.com/photos/1591060/pexels-photo-1591060.jpeg?auto=compress&cs=tinysrgb&dpr=1&w=500) no-repeat center center/cover;
}